package main

import (
	"fmt"
)

func main11() {
	nums := []int{1, 2, 3, 4}
	sum := 0
	for i := 0; i < len(nums); i++ {
		sum += nums[i]
	}
	fmt.Println(sum)

	for i, num := range nums {
		if i == 3 {
			fmt.Println("index ", i, " is ", num)
		}
	}

	m := map[string]int{"k1": 1, "k2": 2}
	for k, v := range m {
		fmt.Println(k, ":", v)
	}

	for i, c := range "你好GO" {
		fmt.Println(i, c)
	}

	fmt.Println(len("你好GO"))

	ch := 'a'

	fmt.Println()

}
